<script>
MarketFuncs.init({{JSON:action_src}});
</script>
<div class="Market-category {{if market_category.items.length}} Market-category-has-items{{/if}}">
	<h1>{{market_category.name}}</h1>
{{if market_category.subcats.length}}
<div class="subcats">
	{{foreach subcat in market_category.subcats}} {{include "controllers/Market/category__subcat"}} {{/foreach}}
	<div class="cl"></div>
</div>
{{/if}}
{{if market_category.items.length}}
<div class="filters"></div>
<div class="items">
	{{foreach item in market_category.items}} {{include "controllers/Market/category__item"}} {{/foreach}}
	<div class="cl"></div>
</div>
<div class="cl"></div>
{{/if}}
</div>
